<template>
  <div>
    <p>语文:{{score1}}</p>
    <p>数学:{{score2}}</p>
    <p>总分:{{total}}</p>
  </div>
</template>

<script>
export default{
  data(){
    return{
      score1:90,
      score2:100,
    }
  },
  computed:{
    total(){
      return this.score1 + this.score2
    }
  }
}
</script>

<style>

</style>